package com.swt.testdemo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 用户表
 *
 * @author Bleeth
 * @version 1.0
 * @date 2020-01-08 16:12
 */
@Data
@TableName("sys_user")
public class SysUserEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private Integer userId;

    /**
     * 角色id
     */
    private Integer roleId;

    /**
     * 用户名
     */
    private String username;

    /**
     * mac信息
     */
    private String mac;

    /**
     * 密码
     */
    private String password;

    /**
     * 盐
     */
    private String salt;

    /**
     * 用户状态
     */
    private String status;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 省份信息
     */
    private String areaId;


    /**
     * 手机号
     */
    private String phone;


    /**
     * 图片
     */
    private String picUrl;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新时间
     */
    private Date updateTime;


    /**
     * 登录失败次数
     */
    private Integer loginFailCount;


    private String areaPermission;


    private Integer expireYear;


    /**
     *  0/停用（） 1/启用(正常)  2/删除  3/未激活 4/到期
     */

    public static final String STATUS_DISABLE = "0";


    public static final String STATUS_ENABLE = "1";


    public static final String STATUS_DELETE = "2";


    public static final String STATUS_INACTIVITY = "3";

    public static final String STATUS_EXPIRE = "4";

}
